<?php

namespace Admin\Form;
use Zend\Form\Fieldset;
use Zend\InputFilter\InputFilterProviderInterface;
use Zend\Stdlib\Hydrator\ClassMethods;


class UserFieldset extends Fieldset
{
    public function __construct($name)
    {
        parent::__construct('user');

        $this->add(array(
            'name' => 'firstname',
            'options' => array(
                'label' => 'First name',
            ),
            'attributes' => array(
                'type' => 'text',
                'class' => 'form-control col-xs-12',
                'placeholder' => 'First name'
            ),
        ));

        $this->add(array(
            'name' => 'lastname',
            'options' => array(
                'label' => 'Last name',
            ),
            'attributes' => array(
                'type' => 'text',
                'class' => 'form-control col-xs-12',
                'placeholder' => 'Last name'
            ),
        ));


        $this->add(array(
            'name' => 'email',
            'options' => array(
                'label' => 'Email',
            ),
            'attributes' => array(
                'type' => 'text',
                'class' => 'form-control col-xs-12',
                'placeholder' => 'Email'
            ),
        ));

        $this->add(array(
            'name' => 'phone',
            'options' => array(
                'label' => 'Phone',
            ),
            'attributes' => array(
                'type' => 'text',
                'class' => 'form-control col-xs-12',
                'placeholder' => 'Phone'
            ),
        ));

        $this->add(array(
            'name' => 'textarea',
            'options' => array(
                'label' => 'address',
            ),
            'attributes' => array(
                'type' => 'textarea',
                'class' => 'form-control col-xs-12',
                'placeholder' => 'address'
            ),
        ));



        $this->add(array(
            'name' => 'password',
            'options' => array(
                'label' => 'Password',
            ),
            'attributes' => array(
                'type' => 'password',
                'class' => 'form-control col-xs-12',
                'placeholder' => 'password'
            ),
        ));

        $this->add(array(
            'name' => 'password_verify',
            'options' => array(
                'label' => 'Password Verify',
            ),
            'attributes' => array(
                'type' => 'password',
                'class' => 'form-control col-xs-12',
                'placeholder' => 'password verify'
            ),
        ));

    }
}